.code16
.text
    mov     %cs,%ax /**/
    mov     %ax,%ds/**/

    mov     %ax,%es
    call    DispStr
    jmp     .
DispStr: 
    mov     $BootMessage, %ax
    mov     %ax,%bp
    mov     $128,%cx
    mov     $0x1301,%ax
    mov     $0x00c,%bx
    mov     $0,%dl
    int     $0x10 /* interupt 10 */
    ret
BootMessage:.ascii "Hello, OS world! This is Hinix! Build by Hays Xiang"
.org 510
.word 0xaa55
